package com.dubbo.springboot.sample.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.dubbo.springboot.sample.api.service.DemoService;


/**
 * @author huabo
 */
@Service(version = "1.0.0")
public class DemoServiceImpl implements DemoService {
    @Override
    public String sayHello(String name) {
        try {
            Thread.sleep(100000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "Hello, " + name + " (from Spring Boot)";
    }
}
